@extends('admin.layouts.index')
@section('title', '添加管理员')

@section('content')

<div class="row">
    <div class="col-md-12">
        <form id="comment-form" method="POST" action="{{ URL::current() }}">
            <div class="card">
                <div class="card-header">
                    <div class="card-title">添加管理员</div>
                </div>
                <div class="card-body">
                    <div class="form-group">
                        <label for="text">账号</label>
                        <input type="text" class="form-control" name="username" placeholder="请输入账号" value="{{ old('username') }}">
                        @csrf
                    </div>
                    <div class="form-group">
                        <label for="text">姓名</label>
                        <input type="text" class="form-control" name="name" placeholder="请输入昵称" value="{{ old('name') }}">
                    </div>
                    <div class="form-group">
                        <label for="text">权限</label>
                        <select class="form-control form-control" name="authority">
                            <option value="1" {!! old('authority') == 1 ? 'selected="selected"' : '' !!}>管理员</option>
                            <option value="2" {!! old('authority') == 2 ? 'selected="selected"' : '' !!}>高级管理</option>
                        </select>
                    </div>
                </div>
                <div class="card-action">
                    <button class="btn btn-success">立即添加</button>
                </div>
            </div>
        </form>
    </div>
</div>


@endsection
